package com.adou.p2p.model;

import java.time.OffsetDateTime;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ErrorMessage {
	
	@JsonProperty("timestamp")
	@NotNull
	private OffsetDateTime timestamp;
	
	@JsonProperty("status")
	@NotNull
	private Integer status;
	
	@JsonProperty("error")
	@NotNull
	private String error;
	
	@JsonProperty("message")
	@NotNull
	@Size(max=255)
	private String message;
	
	@JsonProperty("path")
	private String path;
}
